<?php
$this->breadcrumbs=array(
	'Clubes'=>array('index'),
	'Clube: '.$model->name=>array('view','id'=>$model->id),
	'Alterar Dados',
);

$this->menu=array(
	array('label'=>'Listar Clubes','url'=>array('index')),
	array('label'=>'Cadastrar Clube','url'=>array('create'), 'visible'=>Team::model()->findByAttributes(array('owner_id'=> $_SESSION['owner']->id)) == null),
	array('label'=>'Visualizar Clube','url'=>array('view','id'=>$model->id)),
	array('label'=>'Gerenciar Clubes','url'=>array('admin'), 'visible'=>$_SESSION['user']->username == 'admin'),
);
?>

<h1 align="center">Alterar Clube <?php echo $model->id; ?></h1>

<?php echo $this->renderPartial('_form',array('model'=>$model, 'contacts'=>$contacts, 'foto'=>$foto,'hasContact'=>$hasContact)); ?>